package com.roncoo.education.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("api")
public class ApiController {

    @RequestMapping("/get")
    public HashMap<String ,Object> get(@RequestParam String name){
        HashMap<String,Object> map = new HashMap<>();
        map.put("title","hello world");
        map.put("name",name);
        return map;




    }
}
